package com.rexolar.openapi.constants;

/**
 * @author zhusiyu
 * @description: Constants 类
 **/
public final class Constants {
    private Constants(){}


    /**
     * 默认页码
     */
    public static final String DEFAULT_PAGE_INDEX = "1";

    /**
     * 分页大小
     */
    public static final String DEFAULT_PAGE_SIZE = "20";

    /**
     * 默认版本
     */
    public static final int DEFAULT_VERSION = 1;

    /**
     * 空字符串
     */
    public static final String BLANK_STRING = "";
    /**
     * 逗号 ,
     */
    public static final String SYMBOL_COMMA = ",";
    /**
     * 单引号
     */
    public static final String SYMBOL_SINGLE_QUOTATION= "'";
    /**
     * 冒号 :
     */
    public static final String SYMBOL_COLON = ":";
    /**
     * 点 .
     */
    public static final String SYMBOL_POINT = ".";
    /**
     * 等号 =
     */
    public static final String SYMBOL_EQUAL = "=";
    /**
     * 逗号 ,
     */
    public static final String SYMBOL_AND = "&";
    /**
     * 中划线 -
     */
    public static final String SYMBOL_STRIKETHROUGH = "-";

    /**
     * 正则 点 .
     */
    public static final String REGEX_SYMBOL_POINT = "\\.";
    /**
     * 星 *
     */
    public static final String SYMBOL_ASTERISK = "*";

    /**
     * 正则 邮箱
     */
    public static final String REGEX_EMAIL = "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$";

    /**
     * 重复key
     */
    public static final String DUPLICATE_KEY = "duplicate key";

    public static final String FLOW_POSTFIX = "-flow-rules";
    public static final String PARAM_FLOW_POSTFIX = "-param-rules";
    public static final String SERVER_NAMESPACE_SET_POSTFIX = "-cs-namespace-set";
    public static final String CLIENT_CONFIG_POSTFIX = "-cc-config";
    public static final String CLUSTER_MAP_POSTFIX = "-cluster-map";

    public static final String UNDEFINED = "undefined";

    /**
     * get请求
     */
    public static final String HTTP_METHOD_GET = "GET";
    /**
     * post请求
     */
    public static final String HTTP_METHOD_POST = "POST";
    public static final String SUCCESS = "success";
    public static final String FAIL = "fail";

    /**
     * blockType
     */
    public static final String BLOCK_TYPE = "blockType";


    /**
     * apollo关键字:partner
     */
    public static final String APOLLO_PARTNER = "partner";

    /**
     * apollo关键字:rpc-version
     */
    public static final String APOLLO_SOAVERSION = "soa-version";

    /**
     * 用户信息关键字:
     */
    public static final String UUID = "_uuid";

    public static final String USER_GUID = "userGuid";

    /**
     * 用户信息关键字:userNewId
     */
    public static final String USER_NEW_ID = "userNewId";

    /**
     * 用户信息关键字:手机号
     */
    public static final String USER_PHONE_NUM = "phoneNumber";
    /**
     * 用户信息关键字:用户平台手机号
     */
    public static final String USER_PLATFORM_MOBILE_PHONE = "userPlatformMobilePhone";

    /**
     * true:
     */
    public static final String TRUE = "true";

    /**
     * false:
     */
    public static final String FALSE = "false";

    /**
     * 默认parent_guid
     */
    public static final Long DEFAULT_PARENT_GUID = -1L;
    /**
     * none
     */
    public static final String NONE_STRING = "none";

    public static final String TOKEN_SERVER_NAMESPACE = "sentinel-token-server";
    /**
     * 默认api版本号
     */
    public static final String DEFAULT_API_VERSION = "1.0.0";

    public static final int ERROR_MSG_LENGTH = 1500;
    public static final String BACK_DOOR_URI = "/rexolar/openapi/xsse";
    public static final String URI = "/";
    public static final String ERROR_URI = "/error";
    public static final String LOGIN_URI = "/rexolar/openapi/login";

    public static final String METHOD_LOGIN = "hello.open.login";
}
